home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19971216-19980424
/
000095_news@newsmaster….columbia.edu _Thu Jan 15 16:29:16 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id QAA20416
for <kermit.misc@watsun.cc.columbia.edu>; Thu, 15 Jan 1998 16:29:16 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id QAA21363
for kermit.misc@watsun; Thu, 15 Jan 1998 16:29:16 -0500 (EST)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: stderr under cgi
Date: 15 Jan 1998 21:29:15 GMT
Organization: Columbia University
Lines: 49
Message-ID: <69lv3b$e4b$1@apakabar.cc.columbia.edu>
References: <1998Jan15.111432@merlin.ecid.cig.mot.com>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:8268
In article <1998Jan15.111432@merlin.ecid.cig.mot.com>,
Robert Cornell <cornellr@merlin.ecid.cig.mot.com> wrote:
: I have a couple of cgi scripts that perform all manner of admin
: tasks on a pool of modems. The scripts all work fine, however I
: always seem to get an error message if I call kermit from within
: perl. i.e:
:
: #!/usr/local/bin/kermit
: ...
: ...
: is OK, but:
:
: #!/usr/local/bin/perl
: ...
: system("/usr/local/bin/kermit -C script.ksc");
:
I don't understand this command line. -C means "a list of
interactive-mode kermit commands follows", as in:
/usr/local/bin/kermit -C "echo hi there, take script.ksc, exit"
If all you want Kermit to do is execute the file script.ksc, the
command line should look like this:
/usr/local/bin/kermit script.ksc
(see the manual).
: [This] gives:
:
: Warning: terminal type unknown: ""
: Fullscreen file transfer display disabled.
:
: Is this down to the httpd not having a TERM env variable.
: I tried redirecting stderr, assigning \$(TERM), any ideas?
:
This is because Kermit is trying to initialize curses, which it uses
in its (default) fullscreen file-transfer display. But since this
is not an interactive session, you probably don't want any display
at all, so tell it so:
system("/usr/local/bin/kermit -C \"set xfer displ none,tak script.ksc\"");
But if "set transfer display full" is in your Kermit initialization
file, you'll probably still see the message. Anyway, the message is
harmless. You can also redirect Kermit's output to a file, or
/dev/null if you want to log or not see messages like this.
- Frank